package com.ys.entity.sys;

import javax.persistence.Table;


import java.util.Date;

import com.ys.entity.base.BaseEntity;

/**
*/
@Table(name="lili_admin.`sys_role_menu`", catalog="id")
public class SysRoleMenu extends BaseEntity<SysRoleMenu> {

	private Long id; // 主键ID
	private Long roleId; // 角色ID
	private Long menuId; // 菜单ID
	private Integer status; // 
	private Date createTime; // 
	private Date updateTime; // 

	public Long getId() {
		return id;
	}
	public SysRoleMenu setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getRoleId() {
		return roleId;
	}
	public SysRoleMenu setRoleId(Long roleId) {
		this.roleId = roleId;
		return this;
	}
	public Long getMenuId() {
		return menuId;
	}
	public SysRoleMenu setMenuId(Long menuId) {
		this.menuId = menuId;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public SysRoleMenu setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public SysRoleMenu setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public SysRoleMenu setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static SysRoleMenu sysRoleMenu(
		Long roleId,
		Long menuId,
		Integer status
			) {
		SysRoleMenu entity = new SysRoleMenu();
		entity.setRoleId(roleId);
		entity.setMenuId(menuId);
		entity.setStatus(status);
		return entity;
	}
}